import request from '@/utils/request'

export function login(username, password) {
    return request({
      url: '/admin/login',
      method: 'post',
      data: {
        username,
        password
      }
    })
  }
  
  export function getInfo() {
    return request({
      url: '/admin/xiaohei',
      method: 'get',
    })
  }
  
  export function logout() {
    return request({
      url: '/user/logout',
      method: 'post'
    })
  }